@keyframes myfirst {
    0% {
        top: 250px;
    }
    100% {
        top: 200px;
    }
}

.Idcard {
    width: 100%;
    height: 100%;
    position: relative;
    text-align: center;
}

.Idcard h2 {
    font-size: 44px;
}

.title {
    margin: 0 90px;
    line-height: 60px;
    border-bottom: 1px solid #17a3c6;
    font-size: 36px
}

.imgBox {
    position: relative;
    width: 800px;
    height: 563px;
    margin: 0 auto;
    background: url(../../../assets/card3.png);
}

.Idcard .cardText {
    position: absolute;
    right: 129px;
    top: 140px;
    font-size: 24px;
    color: #e31a1a;
    margin: 0;
    font-weight: bold;
}

.img1 {
    position: absolute;
    left: 565px;
    top: 200px;
    animation: myfirst 1.5s ease-in-out 0s infinite alternate;
}

.img2 {
    position: absolute;
    right: 95px;
    top: 270px;
}